package com.learn.micro_mall.domain.vo.member;

import lombok.Data;

@Data
public class MemberLevelEntityId {

    /**
     * 会员等级配置Id
     */
    private Long memberLevelConfigId;

    /**
     * 等级值
     */
    private Integer level;

    public void valid() throws Exception {
        if(level == null){
            throw new Exception("等级值不正确");
        }
    }
}
